package com.atguigu.alibaba.myrule;

import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 *
 * @author timiv
 */
@Configuration
public class MySelfRule {

    /**
     * 随机规则
     * @return
     */
    @Bean
    public IRule myRule(){
        return new MyRule();
    }
}
